<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="#">设置红包平台抽成比例</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="{:U('RedbagGame/redtatio')}">
			<fieldset>

				<div class="control-group">
					<label class="control-label">平台抽成比例</label>
					<div class="controls">
						<input type="text" name="ratio" value="{$info.ratio}">%
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">是否打开</label>
					<div class="controls">
						<label class="radio inline" for="type_0"><input type="radio" name="status" value="1" id="type_0" <if condition="$info['status'] eq '1'">checked</if> >开</label>
						<label class="radio inline" for="type_0"><input type="radio" name="status" value="2" id="type_1" <if condition="$info['status'] eq '2'">checked</if> >关</label>
					</div>
				</div>

				<div class="control-group">
					<label class="control-label">退包时间</label>
					<div class="controls">
						<input type="text" name="returnred_time" value="{$info.returnred_time}">分钟
					</div>
				</div>

			</fieldset>
			<div class="form-actions">
				<input type="hidden" name="id" value="{$info.id}" />
				<button type="submit" class="btn btn-primary js-ajax-submit">
					{:L('SAVE')}
				</button>
				<a class="btn" href="{:U('Configprivate/lists')}">{:L('BACK')}</a>
			</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
<script>
$(function(){
	$('#data-type').change(function(){
		$('#data-field').val($(this).find('option:selected').attr('rule'));
	});
})
</script>	
</body>
</html>